package com.kifas.model.xml;

import java.io.Serializable;
import java.util.Date;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class StokOpnameModel implements Serializable {

	private static final long serialVersionUID = 5232841156707168545L;

	private Long idStok;

	@XmlElement(name = "barangModel", type = BarangModel.class)
	private BarangModel barang;

	@XmlElement(name = "gudangModel", type = GudangModel.class)
	private GudangModel gudang;

	private String bulanKadaluarsa;

	private Integer qty;

	private Integer qtyLama;

	private Integer qtyBeli;

	private Integer qtyJual;

	private Date tanggal;

	public StokOpnameModel() {
	}

	public StokOpnameModel(Long idStok, BarangModel barang, GudangModel gudang,
			String bulanKadaluarsa, Integer qty, Integer qtyLama,
			Integer qtyBeli, Integer qtyJual, Date tanggal) {
		this.idStok = idStok;
		this.barang = barang;
		this.gudang = gudang;
		this.bulanKadaluarsa = bulanKadaluarsa;
		this.qty = qty;
		this.qtyLama = qtyLama;
		this.qtyBeli = qtyBeli;
		this.qtyJual = qtyJual;
		this.tanggal = tanggal;
	}

	public Long getIdStok() {
		return idStok;
	}

	public void setIdStok(Long idStok) {
		this.idStok = idStok;
	}

	public BarangModel getBarang() {
		return barang;
	}

	public void setBarang(BarangModel barang) {
		this.barang = barang;
	}

	public GudangModel getGudang() {
		return gudang;
	}

	public void setGudang(GudangModel gudang) {
		this.gudang = gudang;
	}

	public String getBulanKadaluarsa() {
		return bulanKadaluarsa;
	}

	public void setBulanKadaluarsa(String bulanKadaluarsa) {
		this.bulanKadaluarsa = bulanKadaluarsa;
	}

	public Integer getQty() {
		return qty;
	}

	public void setQty(Integer qty) {
		this.qty = qty;
	}

	public Integer getQtyLama() {
		return qtyLama;
	}

	public void setQtyLama(Integer qtyLama) {
		this.qtyLama = qtyLama;
	}

	public Integer getQtyBeli() {
		return qtyBeli;
	}

	public void setQtyBeli(Integer qtyBeli) {
		this.qtyBeli = qtyBeli;
	}

	public Integer getQtyJual() {
		return qtyJual;
	}

	public void setQtyJual(Integer qtyJual) {
		this.qtyJual = qtyJual;
	}

	public Date getTanggal() {
		return tanggal;
	}

	public void setTanggal(Date tanggal) {
		this.tanggal = tanggal;
	}
}
